﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using lib_1241108_1241150;

namespace Tempori
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnThem_Click(object sender, EventArgs e)
        {
            OpenFileDialog open = new OpenFileDialog();
            KMeanAlg km = new KMeanAlg();

            open.Filter = "*.arff|*.arff";

            if (open.ShowDialog() == DialogResult.OK)
            {
                MessageBox.Show(km.InitClassAndReadFile(open.FileName, '?'));
                gvDataShow.DataSource = km.Dtb;
            }
        }
    }
}
